home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ OEM Info CPU.xpl < prev    next >
Text File  |  2001-02-02  |  1KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH 1"="Hardware\CPU"
  5. "NAME"="CPU 1 Information"
  6. "VERSION"="1.30"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Type Text"
  9. "TEXT 2"="Vendor Text"
  10. "DESCRIPTION 1"="To see these values, select "Start" | "Settings" | "Control Panel" and click "System"."
  11. "DESCRIPTION 2"="Or, press WINDOWS KEY+PAUSE."
  12. "DESCRIPTION 3"="NOTE: On some systems this information might be automatically replaced by Windows on every startup."
  13. "AUTHOR"="Xteq Systems (TeX HeX + CptSiskoX)"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19. sP1="HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\"
  20. sV1="Identifier"
  21. sV2="VendorIdentifier"
  22.  
  23.  
  24. 'Called when the Plugin is started
  25. Sub Plugin_Initialize
  26.  if RegPathExists(sP1) then
  27.     s=RegReadValue(sP1 & sV1)
  28.     SetUIElement 1,s
  29.  
  30.     s=RegReadValue(sP1 & sV2)
  31.     SetUIElement 2,s
  32.  else
  33.     Disable
  34.  end if
  35. End Sub
  36.  
  37. 'Called when the Plugin should validate the Data the user has entered
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. 'Called when the Plugin should apply the changes
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  s=GetUIElement(1)
  44.  Call RegWriteValue(sP1 & sV1,s,1)
  45.  
  46.  s=GetUIElement(2)
  47.  Call RegWriteValue(sP1 & sV2,s,1)
  48.  
  49.  Call Restart()
  50. End Sub
  51.  
  52. 'Called when the Plugin is about to be removed from memory
  53. Sub Plugin_Terminate
  54. End Sub
  55.